package com.zzh.lib.xpopup.ea;


import com.zzh.lib.views.adapter.holder.HSuperViewHolder;

import java.util.List;

/**
 * Created by ZZH on 2022/12/8.
 *
 * @Date: 2022/12/8
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description:
 */
public interface ItemDelegate<T> {
    public int getLayoutId();

    public boolean isThisType(T item, int position);

    public void bind(HSuperViewHolder holder, T item, int position);

    public default void bindWithPayloads(HSuperViewHolder holder, T item, int position, List<Object> payloads) {
        bind(holder, item, position);
    }
}
